﻿@model WmWebSystem.Models.News

@{
    ViewBag.Title = "新闻编辑";
    Layout = "~/Views/Shared/_Layout_manage.cshtml";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>


<div class="contentcontainer">
    <div class="headings">
        <h2>新闻编辑</h2>
    </div>
    <div class="contentbox">
        @using (Html.BeginForm())
        {
            @Html.ValidationSummary(true)
            @Html.HiddenFor(model => model.NewsId)
            @Html.HiddenFor(model => model.ClickNum)

            <table>
                <tr>
                    <th width="120px">&nbsp; 标题（*）</th>
                    <td>
                      @Html.TextBoxFor(model => model.Title, new { @class = "box" })
                      @Html.ValidationMessageFor(model => model.Title)
                    </td>
                </tr>
                <tr>
                   <th>新闻内容(*)</th>
                   <td>
                    @Html.TextAreaFor(model => model.Content)
                    @Html.ValidationMessageFor(model => model.Content)
                   </td>
                </tr>
                <tr>
                   <th></th>
                   <td>
                    <input type="button" title="取消" value="<< 返回" id="GoBackList" onclick="history.go(-1)" />
                    <input class="btn" id="saveNews" title="保存新闻" value="确定保存 >>" type="submit" />
                   </td>
                </tr>
            </table>
         }  
        <div style="clear: both;"></div>
    </div>
</div>

<script type="text/javascript">
    CKEDITOR.replace('Content');
</script>



